	package com.tomcov.shared;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class JourneyPassenger implements Serializable{
	
	/** The Constant serialVersionUID. */
	private static final long serialVersionUID = 1L;
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true")
	private String id;
	
	/** The From. */
	@Persistent public String From;
	@Persistent public String To;
	@Persistent public String Passenger;
	@Persistent public Date date;
	@Persistent public Date Heuredep;
	@Persistent public Date Heurede2;
	@Persistent public Date HeureArr;
	@Persistent double duration;
	@Persistent double distance;
	@Persistent public String idJourney;
	@Persistent public String DriverName;
	@Persistent public List<String> steps;
	@Persistent public List<String> stepsDetails;
	@Persistent public List<String> waypoints;
	
	
	/**
	 * Instantiates a new journey passenger.
	 */
	public JourneyPassenger(){
		idJourney="null";
		DriverName="null";
	}
	
	/**
	 * @return the from
	 */
	public String getFrom() {
		return From;
	}
	/**
	 * @param from the from to set
	 */
	public void setFrom(String from) {
		From = from;
	}
	/**
	 * @return the to
	 */
	public String getTo() {
		return To;
	}
	/**
	 * @param to the to to set
	 */
	public void setTo(String to) {
		To = to;
	}
	/**
	 * @return the driver
	 */
	public String getPassenger() {
		return Passenger;
	}
	/**
	 * @param driver the driver to set
	 */
	public void setPassenger(String driver) {
		Passenger = driver;
	}
	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}
	/**
	 * @param date the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}
	/**
	 * @return the heuredep
	 */
	public Date getHeuredep() {
		return Heuredep;
	}
	/**
	 * @param heuredep the heuredep to set
	 */
	public void setHeuredep(Date heuredep) {
		Heuredep = heuredep;
	}
	/**
	 * @return the heurede2
	 */
	public Date getHeurede2() {
		return Heurede2;
	}
	/**
	 * @param heurede2 the heurede2 to set
	 */
	public void setHeurede2(Date heurede2) {
		Heurede2 = heurede2;
	}
	/**
	 * @return the heureArr
	 */
	public Date getHeureArr() {
		return HeureArr;
	}
	/**
	 * @param heureArr the heureArr to set
	 */
	public void setHeureArr(Date heureArr) {
		HeureArr = heureArr;
	}
	/**
	 * @return the duration
	 */
	public double getDuration() {
		return duration;
	}
	/**
	 * @param duration the duration to set
	 */
	public void setDuration(double duration) {
		this.duration = duration;
	}
	/**
	 * @return the distance
	 */
	public double getDistance() {
		return distance;
	}
	/**
	 * @param distance the distance to set
	 */
	public void setDistance(double distance) {
		this.distance = distance;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the idJounrey
	 */
	public String getIdJounrey() {
		return idJourney;
	}

	/**
	 * @param idJounrey the idJounrey to set
	 */
	public void setIdJounrey(String idJounrey) {
		this.idJourney = idJounrey;
	}

	/**
	 * @return the driverName
	 */
	public String getDriverName() {
		return DriverName;
	}

	/**
	 * @param driverName the driverName to set
	 */
	public void setDriverName(String driverName) {
		DriverName = driverName;
	}

	/**
	 * @return the steps
	 */
	public List<String> getSteps() {
		return steps;
	}

	/**
	 * @param steps the steps to set
	 */
	public void setSteps(List<String> steps) {
		this.steps = steps;
	}

	/**
	 * @return the stepsDetails
	 */
	public List<String> getStepsDetails() {
		return stepsDetails;
	}

	/**
	 * @param stepsDetails the stepsDetails to set
	 */
	public void setStepsDetails(List<String> stepsDetails) {
		this.stepsDetails = stepsDetails;
	}

	/**
	 * @return the waypoints
	 */
	public List<String> getWaypoints() {
		return waypoints;
	}

	/**
	 * @param waypoints the waypoints to set
	 */
	public void setWaypoints(List<String> waypoints) {
		this.waypoints = waypoints;
	}

}
